import React, {Component} from 'react'
import {View, Text, ActivityIndicator, StyleSheet} from 'react-native'
import screenHeight from '../../config/styles'

class LoadingCommon extends Component {
    render () {
        return (
            <View  style={[styles.centering,{height:170}]}>
                <ActivityIndicator
                    animating={true}
                    size="large"
                />
                <Text>正在加载数据...</Text>
            </View>
        )
    }
}

const styles = StyleSheet.create({
    centering: {
        flex:1,
        backgroundColor:'#eff6fa',
        alignItems: 'center',
      justifyContent: 'center',
      padding: 8,
    }
})

export default LoadingCommon